package com.ant.storage.mapper;

import com.ant.storage.dto.DepDto;
import com.ant.storage.dto.PickingDto;
import com.ant.storage.pojo.Picking;
import com.ant.storage.vo.PickingCensusVo;
import com.ant.storage.vo.PickingCommodityVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author melon
 * @since 2022-10-28
 */
public interface PickingMapper extends BaseMapper<Picking> {

    List<PickingCommodityVo> findByIdList(@Param("id") Integer id);

    List<PickingCommodityVo> findDepByIdList(@Param("id") Integer id,
                                             @Param("goodsType") String goodsType);
    String selectLastID();

    List<PickingCensusVo> findPickingCensus(@Param("dto") DepDto dto);

    List<Picking> selectDepByIdList(@Param("dto") PickingDto dto);

   Integer selectDepByIdListCount(@Param("dto") PickingDto dto);
}
